package com.tx.admin.entity;

import java.util.Set;

import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

import com.tx.admin.annotation.JpaKey;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@MappedSuperclass
@Data
public abstract class RbacEntity extends SuperEntity{

	@ApiModelProperty("创建人编号")
	private String crtUser;
	@ApiModelProperty("创建人部门")
	private String crtDepartment;
	@ApiModelProperty("更新编号")
	private String uptUser;
	@ApiModelProperty("更新人部门")
	private String uptDepartment;
	
	
	@Transient
	@JpaKey(key="crtUser")
	@ApiModelProperty("用户数据权限用")
	private Set<String> filterUser;
	
	@Transient
	@JpaKey(key="crtDepartment")
	@ApiModelProperty("部门数据权限用")
	private Set<String> filterDepartment;
	
	
}
